<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>${title }</title>
    <link rel="stylesheet" href="${basePath}/static/bootstrap/css/bootstrap.css"/>
    <link href="${basePath}/static/css/basic.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/login.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/list.css" rel="stylesheet" type="text/css">
	<script  type="text/javascript" src="${basePath}/static/js/jquery.min.js"></script>
	<script type="text/javascript" src="${basePath}/static/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${basePath}/static/page/jqPaginator/jqPaginator.js"></script>
     <style type="text/css">
    	.btn{
    		padding: 6px;
    	}
    	b{float:left;font-weight:400}
    	.check{float:left;}
    	#div_login{
    	  margin:0px 170px;
    	}
    </style>
</head>
<body class="bj">
<!--头部-->
	<%@include file="/WEB-INF/templates/common/header.jsp"%>
	<!------导航条-->
	<%@include file="/WEB-INF/templates/common/navigation.jsp"%>

<!--内容部分-->
<div class="list_main lay_out" class="clearfix">
    <div class="list_DH">
        <%@include file="/WEB-INF/templates/common/queryNav.jsp"%>
    </div>
    <div class="list_NR">
  		<div class="loc" style="margin-bottom:10px;">
  			 <h3>特殊检索</h3>
  		</div>
	    <form style="height:auto;">
			 <div id="div_login">
					 <div class="login" style="top:75px;">
					  <ul>
					  <li><b>姓　名：</b><input id="name" name="zlys.idcard" type="text" class="textbox" value=""></li>
					  <li><b>身份证：</b><input id="idcard" name="zlys.idcard" type="text" class="textbox" value=""></li>
					  <li><b>手机号：</b><input id="phoneNum" name="zlys.phoneNum" type="text" class="textbox" value=""></li>
					  <li><button class='getpassword' onclick="getpassword(event)" style="width:110px;background:#ccc;border-radius:6px;cursor:pointer;float:right;line-height:28px;">点击获取验证码</button><b>验证码：&nbsp;</b><input name="validateCode" id="check" type="text" class="check" value="">
					  </li>
					  <li style="height:35px; margin-top:25px;">
					  <a><input name="btnLogin" class="L_up" onclick="login()" type="button" value="登&nbsp;&nbsp;录"></a>
					  <a><input name="btnLogin" class="L_up2" onclick="close()" type="button" value="关&nbsp;&nbsp;闭"></a>
					  </li>
					 </ul>
					 </div>
			</div>
	  </form>
	
    </div>
</div>
<!------页脚部分--------->
<%@include file="/WEB-INF/templates/common/footer.jsp"%>

 <!--JS部分-->
 <script>
   //倒计时获取验证码
    var num=60;
	var timg=null;
	var userPhone;//保存点击登录时，输入的手机号
	var passPhone;//保存点击发送验证码时，输入的手机号
	var phonecode;//保存验证码
    function getpassword(e){
		e.preventDefault();
		var that=$(e.target);
    	passPhone=$('#phoneNum').val();
	    if(passPhone==''){
	    	alert('手机号不能为空！')
	        return;
	    }else{
	        var regexPhoneNum=/^[1][3-8][0-9]{9}$/;
	        if(!regexPhoneNum.test(passPhone)){
	        	alert("输入的手机号码格式不正确！")
	            return;
	        }
	    };
	    $('.getpassword').html(num+'秒之后重发');
	    $('.getpassword').prop("disabled",true);
	    timg=setInterval(function(){
	        if(num>0&&num<=60){
	            num--;
	            $('.getpassword').html(num+'秒之后重发');
	            $('.getpassword').prop("disabled",true);
	        }else if(num==0){
	            clearInterval(timg);
	            $('.getpassword').html('点击重新发送');
	            $('.getpassword').prop("disabled",false);
	            phonecode=''
	            num=60;
	        }
	    },1000);
    }
	//登录
	function login(){
	  location="${basePath}/retrieval/specialSearches_index"
	  
	}
	//关闭
	function close(){
		
	}
	
 </script>
<!-- <script type="text/javascript">
		$(window).load(function(){
//要执行的方法体
});
		
function tj(){
	/* window.location.href="${basePath}/statics/statisticIndex" */
	$("#resultTable").show();
}
		
function queryClinic() {
	location = "${pageContext.request.contextPath}/page/queryClinic";
}
		
$(function(){
	$("input[type='checkbox']").addClass("check_cl");
	hideDiv();
	function hideDiv(){
		$("#ysDiv").hide();
		$("#zyDiv").hide();
		$("#ksDiv").hide();
		$("#jbDiv").hide();
		$("#zlDiv").hide();
		$("#sfzdis").hide();
	}
				// /////////////手术操作////////////////////
	$("#ssmcID").click(function() {
		$("#mainContent").attr("src", "bingan/basy/selectSSCZ.jsp");
		hideDiv();
		$("#sfzdis").show();
		return false;
	});
	// /////////////疾病////////////////////
	$("#jbzdSelectId").click(function() {
		$("#mainContentJB").attr("src", "bingan/basy/selectJBZD.jsp");
		hideDiv();
		$("#jbDiv").show();
		return false;
	});
	// /////////////肿瘤////////////////////
	$("#zhongliuSelectId").click(function() {
		$("#mainContentZL").attr("src", "bingan/basy/selectZL.jsp");
		hideDiv();
		$("#zlDiv").show();
		return false;
	});

	
	$("#zrrname").click(function(){
		$("#mainContentYS").attr("src", "bingan/basy/selectZLYS.jsp");
		hideDiv();
		$("#ysDiv").show();
		return false;
	});
	$("#zhaiyao").click(function(){
		var arr=$("#zhaiyao").val().split(",");
		var i = 1;
		for(var index in arr){
			var jq_zy =  arr[index];
			var str = "#zyt" + i;
			$(str).val(jq_zy);
			i++;
		}
		hideDiv();
		$("#zyDiv").show();
		$("#zyt1").focus();
	});
	$("#zyset").click(function(){
		$("#zyDiv").hide();
	});
	$("#zysub").click(function(){
		var result = $("input[id^=zyt]");
		var str = "";
		var i = 1;
		result.each(function(){
			var jq_zyt=$(this);
			if(jq_zyt.val() != null && jq_zyt.val() != ""){
				str+=jq_zyt.val()+",";
				var jq_val = "#zyt" + i;
				$(jq_val).val(jq_zyt.val());
			}
			i++;
		});
		$("#zhaiyao").val(str);
		$("#zyDiv").hide();
	});
	
	$("#cyksSelectId").click(function() {
		$("#mainContentKS").attr("src", "bingan/basy/selectCYKS.jsp");
		hideDiv();
		$("#ksDiv").show();
		return false;
	});
	$("a[id^=basyy]").click(function() {
		var bsm = $(this).attr("bsm");
		$.post("bingan/getbaseInfoForFrame", 
			{selectParam : bsm, mark : '2'},
			function(data) {
				if (typeof (data) == "string") {
					alert(data);
					return false;
				}
				//调用父类的元素
				var jq_fuALink = $(parent.document).find("input[id='basy']");
				jq_fuALink.trigger("click");
		}, 'json');
		return false;
	});
	$.post('http://localhost:8080/CMDP/bingan/select_bzflForJson', {}, function(data) {
			var jq_jbSelect = $("#jibingName_ID");
			var jq_ssSelect = $("#ssczName_ID");
			var jbSelected = $("#jbSelected").val();
			var ssSelected = $("#ssSelected").val();
			for ( var index in data) {
				var dbData = data[index];
				var type = dbData.bztype;
				var name = dbData.name;
				var leimu = dbData.leimu;
				var yamu = dbData.yamu;
				var ximu = dbData.ximu;
				var responseVal = "";
				if (leimu) {
					responseVal+=leimu+";";
				}else{
					responseVal+=";";
				}
				if (yamu) {
					responseVal+=yamu+";";
				}else{
					responseVal+=";";
				}
				if (ximu) {
					responseVal+=ximu+";";
				}else{
					responseVal+=";";
				}
				if(responseVal == jbSelected || responseVal == ssSelected){
					var opt = $("<option>").val(responseVal).text(name).attr("selected",true);
				}else{
					var opt = $("<option>").val(responseVal).text(name);
				}
				if (1 == type) {
					jq_jbSelect.append(opt);
					
				} else if (2 == type) {
					jq_ssSelect.append(opt);
				}
			}
		}, "json");
	$.post('http://localhost:8080/CMDP/lkjqiantai/getNeedInfoForGD.action', null,
					function(data) {
						var lyfsData = data['lyfs'];
						var jq_lyfs = $("#lyfsdiv");
						for ( var index in lyfsData) {
							var Obj = lyfsData[index];
							var code = Obj.code;
							var name = Obj.name;
							var createSpan = $("<span>").text(name);
							var inputCheckBox = $("<input>").attr( {
								type : "checkbox",
								id : "checkbox" + code,
								value : code,
								name : "cybrSearch.lyfs",
								class : "check_cl"
							}).after(createSpan);
							jq_lyfs.append(inputCheckBox);
						}
						var qxbtn = $("<input>").attr( {
							type : "button",
							value : "全选",
							class : "int leaveStyle"
						}).click(function() {
						
						var lyfs=getFormVals("cybrSearch.lyfs");
						var data = lyfs.split(",");
						for(var i=0;i<data.length;i++){
							var eleId = "checkbox" +data[i];
							$("#" + eleId).attr("checked", 'true');
						}
						/* if(this.value=="全选"){
							var data = lyfs.split(",");
							for(var i=0;i<data.length;i++){
								var eleId = "checkbox" +data[i];
								$("#" + eleId).attr("checked", 'true');
							}
							this.value="取消全选";
						}else{
							var data = lyfs.split(",");
							for(var i=0;i<data.length;i++){
								var eleId = "checkbox" +data[i];
								$("#" + eleId).attr("checked", false);
							}
							this.value="全选";
						} */
							/* if(this.value =="全选"){
								$("input[id^=checkbox]").attr("checked", 'true');
								this.value ="全不选";
							}else{
								$("input[id^=checkbox]").attr("checked", 'false');
								this.value ="全选";
							} */
							
						});
						
						
						var qbxbtn = $("<input>").attr( {
							type : "button",
							value : "撤消",
							class : "int leaveStyle"
						}).click(function() {
						
						var lyfs=getFormVals("cybrSearch.lyfs");
						var data = lyfs.split(",");
						for(var i=0;i<data.length;i++){
							var eleId = "checkbox" +data[i];
							$("#" + eleId).attr("checked", false);
						}
						/* if(this.value=="全选"){
							var data = lyfs.split(",");
							for(var i=0;i<data.length;i++){
								var eleId = "checkbox" +data[i];
								$("#" + eleId).attr("checked", 'true');
							}
							this.value="取消全选";
						}else{
							var data = lyfs.split(",");
							for(var i=0;i<data.length;i++){
								var eleId = "checkbox" +data[i];
								$("#" + eleId).attr("checked", false);
							}
							this.value="全选";
						} */
							/* if(this.value =="全选"){
								$("input[id^=checkbox]").attr("checked", 'true');
								this.value ="全不选";
							}else{
								$("input[id^=checkbox]").attr("checked", 'false');
								this.value ="全选";
							} */
							
						});
						
						jq_lyfs.append(qxbtn).append(qbxbtn);
						var lyfsdata = $("#lyfsdata").val();
						if (lyfsdata) {
							var data = lyfsdata.split(",");
							for ( var index in data) {
								var exsistid = $.trim(data[index]);//IE,火狐都支持
					var eleId = "checkbox" + exsistid;
					$("#" + eleId).attr("checked", 'true');
				}
			}
			
			//获取checkbox框的值
 		function getFormVals(name){
		 var arr = [];
		  $("input[type='checkbox'][name='"+name+"']").each(function(){
		  	arr.push($(this).val());	
		  });
		  return arr.toString();
		}
			var jq_cyksid1 = $("#cyksid1");
			var ks1Data = data['ks'];
			for ( var index in ks1Data) {
				var Obj = ks1Data[index];
				var code = Obj.code;
				var name = Obj.name;
				var opt = $("<option>").val(code).text(name);
				jq_cyksid1.append(opt);
			}

		}, 'json');
		$.post('http://localhost:8080/CMDP/lkjqiantai/getRybqDict.action', null,
					function(data) {
						var rybqData = data['rybq'];
						var jq_rybq = $("#rybqdiv");
						for ( var index in rybqData) {
							var Obj = rybqData[index];
							var code = Obj.code;
							var name = Obj.name;
							var createSpan = $("<span>").text(name);
							var inputCheckBox = $("<input>").attr( {
								type : "checkbox",
								id : "boxrybq" + code,
								value : code,
								name : "cybrSearch.rybq",
								class : "check_cl"
							}).after(createSpan);
							jq_rybq.append(inputCheckBox);
						}
						/**
						var qxbtn = $("<input>").attr( {
							type : "button",
							value : "全选"
						}).click(function() {
							$("input[id^=boxrybq]").attr("checked", 'true');
						});
						jq_rybq.append(qxbtn);**/
						var rybqdata = $("#rybqdata").val();
						if (rybqdata) {
							var data = rybqdata.split(",");
							for ( var index in data) {
								var exsistid = $.trim(data[index]);//IE,火狐都支持
								var eleId = "boxrybq" + exsistid;
								$("#" + eleId).attr("checked", 'true');
							}
						}
		}, 'json');
		var zdlxdata = $("#zdlx").val();
		if (zdlxdata) {
			var data = zdlxdata.split(",");
			for ( var index in data) {
				var exsistid = $.trim(data[index]);//IE,火狐都支持
			var eleId = "zdlx" + exsistid;
			$("#" + eleId).attr("checked", 'true');
			}
		}
		
		$("#jibingName_ID").change(function(){
			if($("#jibingName_ID").val() != ""){
				$("#jbzdleiId").attr("disabled",true); 
				$("#jbzdyaId").attr("disabled",true);
				$("#jbzdxiId").attr("disabled",true);
			}else{
				$("#jbzdleiId").attr("disabled",false); 
				$("#jbzdyaId").attr("disabled",false);
				$("#jbzdxiId").attr("disabled",false);
			}
		});   
	     
		$("#ssczName_ID").change(function(){
			if($("#ssczName_ID").val() != ""){
				$("#ssczleiId").attr("disabled",true); 
				$("#ssczyaId").attr("disabled",true);
				$("#ssczXiId").attr("disabled",true);
			}else{
				$("#ssczleiId").attr("disabled",false); 
				$("#ssczyaId").attr("disabled",false);
				$("#ssczXiId").attr("disabled",false);
			}
		});
	});
	/* function tj() {
		var sbtEle=document.getElementById("tjimg");
		var a = document.getElementById("startTime").value;
		var b = document.getElementById("endTime").value;
		var startY = $("#startYear").val();
		var startM = $("#startMonth").val();
		var startD = $("#startDay").val();
		var endY = $("#endYear").val();
		var endM = $("#endMonth").val();
		var endD = $("#endDay").val();
		if(startY != "" && (startY < 1 ||startY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(endY != "" && (endY < 1 || endY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(startM != "" && (startM < 1 || startM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if(endM != "" && (endM < 1 || endM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if (startD != "" && (startD < 1 || startD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else if(endD != "" && (endD < 1 || endD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else{
			if (a == "" && b == "") {
				alert("请选择开始或结束时间！");
			}else {
			
				if(a == "" && b != ""){
					$("#startTime").val(b);
				}
				if(a != "" && b == ""){
					$("#endTime").val(a);
				}
				document.form1.action = "excel/getAllTJINFO.action";
				document.form1.submit();
			}
		}
	} */

	function clearSession(){
		if(confirm("确定清空查询结果吗？")){
			document.form1.action="excel/clearCountSession.action";
			document.form1.target="_self";
			document.form1.submit();
		}
	}
</script>
 -->

</body>
</html>